
:root {
    --primary-color: #2c3e50;
    --sidebar-width: 250px;
    --header-height: 60px;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}


.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}


#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--primary-color);
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
}

#sidebar.active {
    margin-left: calc(-1 * var(--sidebar-width));
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #1a2634;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    background: #34495e;
}

#sidebar ul li.active > a {
    background: #3498db;
}

#sidebar ul li a i {
    margin-right: 10px;
}


#content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    min-height: 100vh;
}
#content.active {
    width: 100%;
    margin-left: 0;
}


.navbar {
    padding: 15px 10px;
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
}

#sidebarCollapse {
    background-color: transparent;
    border-color: #fff;
}

/* 数据卡片样式 */
.stats-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-title {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.stats-change {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stats-icon i {
    font-size: 1.5rem;
}

/* 图表卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 快捷入口样式 */
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s;
}

.quick-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.quick-link i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
    #content.active {
        width: calc(100% - var(--sidebar-width));
        margin-left: var(--sidebar-width);
    }
} 